<?php if (!defined('THINK_PATH')) exit();?><html lang="en" style="font-size: 100px;"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="icon" href="/favicon.ico"><title>龙珠</title><style>body {
        background: #f2f2f2;
      }
      @media screen and (min-width: 767px) {
        #app {
          width: 540px;
          margin: 0 auto;
          min-height: 100vh;
          box-sizing: border-box;
          border: 1px solid #999;
          /* overflow-y: hidden; */
        }
        .van-popup--top {
          width: 540px;
          margin: 0 auto;
        }
      }</style><link href="/css/chunk-02960128.d8e4678b.css" rel="prefetch"><link href="/css/chunk-03d19c5b.da3b4d7d.css" rel="prefetch"><link href="/css/chunk-16db521b.9f656bd8.css" rel="prefetch"><link href="/css/chunk-24229c8f.122b5dbc.css" rel="prefetch"><link href="/css/chunk-38d9c4e3.72558616.css" rel="prefetch"><link href="/css/chunk-41206b58.2fe3c40b.css" rel="prefetch"><link href="/css/chunk-43155bdd.7506223a.css" rel="prefetch"><link href="/css/chunk-4dbebf52.c3310d55.css" rel="prefetch"><link href="/css/chunk-57d8499b.96222562.css" rel="prefetch"><link href="/css/chunk-58705b64.1442bd8d.css" rel="prefetch"><link href="/css/chunk-5ea3ec15.30d377cf.css" rel="prefetch"><link href="/css/chunk-6a2440bf.15a728eb.css" rel="prefetch"><link href="/css/chunk-6de0daa4.5391e009.css" rel="prefetch"><link href="/css/chunk-9fea3c5c.531c8116.css" rel="prefetch"><link href="/css/chunk-ae7bdc24.38e0efd9.css" rel="prefetch"><link href="/css/chunk-dee820da.cfa2c36a.css" rel="prefetch"><link href="/css/chunk-fde07e7a.adc0509a.css" rel="prefetch"><link href="/css/app.2150f8cc.css" rel="preload" as="style"><link href="/css/chunk-vendors.e9f6096e.css" rel="preload" as="style"><link href="/css/chunk-vendors.e9f6096e.css" rel="stylesheet"><link href="/css/app.2150f8cc.css" rel="stylesheet"><link rel="stylesheet" type="text/css" href="/css/chunk-43155bdd.7506223a.css"><link rel="stylesheet" type="text/css" href="/css/chunk-fde07e7a.adc0509a.css"><link rel="stylesheet" type="text/css" href="/css/chunk-57d8499b.96222562.css"><link rel="stylesheet" type="text/css" href="/css/chunk-38d9c4e3.72558616.css"><link rel="stylesheet" type="text/css" href="/css/chunk-6de0daa4.5391e009.css"><link rel="stylesheet" type="text/css" href="/css/chunk-03d19c5b.da3b4d7d.css"><link rel="stylesheet" type="text/css" href="/css/chunk-ae7bdc24.38e0efd9.css"><link rel="stylesheet" type="text/css" href="/css/chunk-41206b58.2fe3c40b.css"><link rel="stylesheet" type="text/css" href="/css/chunk-6a2440bf.15a728eb.css"><link rel="stylesheet" type="text/css" href="/css/chunk-02960128.d8e4678b.css"><link rel="stylesheet" type="text/css" href="/css/chunk-9fea3c5c.531c8116.css"><link rel="stylesheet" type="text/css" href="/css/chunk-24229c8f.122b5dbc.css"><style type="text/css">
.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block
}
.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%
}
.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0
}
td{text-align: center;color:#000;    font-size: 15px;}
#zt{display:none;}
</style><link rel="stylesheet" type="text/css" href="/css/chunk-58705b64.1442bd8d.css"><link rel="stylesheet" type="text/css" href="/css/chunk-5ea3ec15.30d377cf.css"><link rel="stylesheet" type="text/css" href="/css/chunk-dee820da.cfa2c36a.css"><link rel="stylesheet" type="text/css" href="/css/chunk-4dbebf52.c3310d55.css"><link rel="stylesheet" type="text/css" href="/css/chunk-16db521b.9f656bd8.css"></head>
<body class=""><div id="app"><div  class="home"><!---->


<div data-v-728c631b=""  class="carry-order"><header data-v-728c631b="">首页</header><section data-v-728c631b=""><div data-v-728c631b="" class="van-tabs van-tabs--line">

<div class="van-tabs__wrap van-hairline--top-bottom">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<div role="tab"  class="van-tab " id="itemmobileb"><span class="van-ellipsis">手册</span></div>
<div role="tab" aria-selected="true" class="van-tab van-tab--active" id="itemmobilea"><span class="van-ellipsis">抢单</span></div>
<div role="tab" class="van-tab" id="itemmobilec"><span class="van-ellipsis">进行中</span></div>
<div role="tab" class="van-tab" id="itemmobiled"><span class="van-ellipsis">客服</span></div>
<div class="van-tabs__line" style="width: 46.5px; transform: translateX(46.5px) translateX(150%); transition-duration: 0.3s;"></div></div></div>

<div class="van-tabs__content"><div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style=""></div><div data-v-728c631b="" role="tabpanel" class="van-tab__pane"  id="item1mobile">

<div data-v-0a76cd72="" data-v-728c631b=""><div data-v-0a76cd72="" class="account-info"><div data-v-0a76cd72="">可抢额度:<?php echo ($max_pipeinone); ?>元</div><div data-v-0a76cd72="">账户余额:<?php echo ($ulist["money"]); ?>元</div></div><div data-v-4deec435="" data-v-0a76cd72="" style="margin-bottom: 12px;"></div><button data-v-0a76cd72="" class="select-code van-button van-button--default van-button--normal" onclick="optionqd()"><span data-v-0a76cd72="" class="van-button__text" id="option">
<?php  if($ulist['zdopention'] >0){ ?>	
  停止自动抢单<?php }else{?>开启自动抢单<?php } ?>
  </span></button><!---->
  <section data-v-2aa7943a="" class="service-info"><div data-v-2aa7943a="" class="MB20 fail-color" style="margin: 0 .1rem;">
  <table style="width: 100%">
                <tr>
                   <th>类型</th>
                   <th>金额</th>
                   <th>操作</th>
                </tr>
             
          <tbody id="tpl">
		 
		  </tbody>
               
            </table>
      
    </div></section>
  
  </div>

</div>

<div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style="display: none;" id="item3mobile">
<?php if(is_array($slist)): foreach($slist as $key=>$info): ?><div data-v-7b3d257d class="detail-info">

								<div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0px, 0px); transition-duration: 0.6s;">
								<div data-v-9d393b54="" class="flexh flex-between MR10">
								
								<div data-v-9d393b54="" class="flex1">
								<div data-v-9d393b54="" class="benefit">类型

                <span data-v-9d393b54="" class="warn-color font-14"><?php  if ($info['class'] == 1) { ?> 微信<?php  }elseif($info['class'] == 2){ ?>支付宝<?php  }elseif($info['class'] == 3){ ?>商家码<?php } ?> </span>
			</div>
				<div data-v-9d393b54="" class="MT03">
                充值单号: <?php echo ($info["pay_sn"]); ?>
              </div>
			  <div data-v-9d393b54="" class="MT03" style="color: rgb(153, 153, 153);">时间:<?=date('Y-m-d H:i:s',$info['pipeitime'])?></div></div>
			  <div data-v-9d393b54="" style="text-align: right;">
			  <div data-v-9d393b54="" class="benefit"><span data-v-9d393b54="" class="font-14 fail-color" style="font-size: .20rem;">
                  <?php echo ($info["pay_money"]); ?>元
                 </span></div>
				  <div data-v-9d393b54="" class="green font-14" style="margin-top: 0.26rem;" onclick="location='<?php echo U('Index/qiangdanxq',array('id'=>$info['id']));?>'">查看详情</div></div></div></div></div><?php endforeach; endif; ?>	

</div><!---->


<div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style="display: none;" id="item4mobile">
  <div style="    margin: 5% 10%;font-size: 30px;">
  <?php echo ($clist["qd_kf"]); ?>
<img data-v-41371306="" src="<?php echo ($imgkf); ?>" alt="" style="width: 80%;"></div></div></div></div>

<div data-v-e46bf050="" data-v-728c631b="" class="guide-ruler" carryorderlist="" id="item2mobile" style="display: none;"><!---->
  <?php if(is_array($list)): foreach($list as $key=>$v): ?><div data-v-e46bf050="" class="<?php echo ($v["from"]); ?>">
    <a href="<?php echo U('Index/news',array('id'=>$v['id']));?>" style="color: #fff;"><?php echo ($v["title"]); ?></a>
  </div><?php endforeach; endif; ?>
  
  <!----><!----><!----></div></section></div>
  <script type="text/javascript" src="/Public/home/common/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="/Public/home/common/layer/layer.js"></script>
		<script type="text/javascript" src="/Public/home/common/js/index.js" ></script>
<script type="text/javascript">
		$("#itemmobilea").click(function(){
			$("#item1mobile").show();
			$("#item2mobile").hide();
			$("#item3mobile").hide();
			$("#item4mobile").hide();
			$("#itemmobilea").addClass('van-tab--active');
			$('.van-tabs__line').css("transform","translateX(41px) translateX(150%)");
			$("#itemmobileb").removeClass('van-tab--active');
			$("#itemmobilec").removeClass('van-tab--active');
			$("#itemmobiled").removeClass('van-tab--active');
			
		});
		$("#itemmobileb").click(function(){
			$("#item1mobile").hide();
			$("#item2mobile").show();
			$("#item3mobile").hide();
			$("#item4mobile").hide();
			$("#itemmobileb").addClass('van-tab--active');
			$('.van-tabs__line').css("transform","translateX(41px) translateX(-50%)");
			$("#itemmobilea").removeClass('van-tab--active');
			$("#itemmobilec").removeClass('van-tab--active');
			$("#itemmobiled").removeClass('van-tab--active');
			
		});
		$("#itemmobilec").click(function(){
			
			$("#item1mobile").hide();
			$("#item2mobile").hide();
			$("#item3mobile").show();
			$("#item4mobile").hide();
			$("#itemmobilec").addClass('van-tab--active');
			$('.van-tabs__line').css("transform","translateX(41px) translateX(350%)");
			$("#itemmobileb").removeClass('van-tab--active');
			$("#itemmobilea").removeClass('van-tab--active');
			$("#itemmobiled").removeClass('van-tab--active');
		  $.ajax({
                        type: 'POST',
                        url: '<?php echo U("Index/loading");?>',
                        data: '',
                        dataType: 'json',
                        success: function(str) {
                             $("#item3mobile").empty();
                             $.each(str, function(i, item){      
							
							   html='<div data-v-7b3d257d class="detail-info"><div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0px, 0px);transition-duration: 0.6s;"><div data-v-9d393b54="" class="flexh flex-between MR10"><div data-v-9d393b54="" class="flex1"><div data-v-9d393b54="" class="benefit">类型 <span data-v-9d393b54="" class="warn-color font-14">'+item.t+'</span></div>';
							   html+= '<div data-v-9d393b54="" class="MT03">充值单号: '+item.pay_sn+'</div><div data-v-9d393b54="" class="MT03" style="color: rgb(153, 153, 153);">时间:'+item.add+'</div></div><div data-v-9d393b54="" style="text-align: right;"><div data-v-9d393b54="" class="benefit"><span data-v-9d393b54="" class="font-14 fail-color" style="font-size: .20rem;">'+item.pay_money+' 元</span></div>';
							   html+= '<div data-v-9d393b54="" class="green font-14" style="margin-top: 0.26rem;" onclick="start_sdd('+item.id+')">查看详情</div></div></div></div></div>';

							   $("#item3mobile").append(html);
							 });  
                        }
                    });
			
		});
		$("#itemmobiled").click(function(){
			$("#item1mobile").hide();
			$("#item2mobile").hide();
			$("#item3mobile").hide();
			$("#item4mobile").show();
			$("#itemmobiled").addClass('van-tab--active');
			$('.van-tabs__line').css("transform","translateX(41px) translateX(550%)");
			$("#itemmobileb").removeClass('van-tab--active');
			$("#itemmobilea").removeClass('van-tab--active');
			$("#itemmobilec").removeClass('van-tab--active');
			
		});
	
		function zdqd(){

		var qdclass = $('#qdclass').val();
		var qdclass2 = $('#qdclass2').val();
		var qdclass3 = $('#qdclass3').val();

		$.post("<?php echo U('Index/zidong');?>",
			{'qdclass' : qdclass,'qdclass2':qdclass2,'qdclass3':qdclass3},
			function(data){
				if(data.status==1){
					showSound();
					layer.msg(data.msg);  //,data.url);
                    $("#zt").text(0);
					setTimeout(function (args) {
						window.location.href = "<?php echo U('Index/shoudan');?>";
					}, 5000); 
				}
		 });

		
	}

 	function showSound(audioSrc='/Public/home/common/dd.mp3') {
            /**因为音效元素是追加的，所以每次生成之前，将原来的删除掉*/
            $("#hint").remove();
            /**创建audio标签的Jquery对象，然后追加到body进行播放即可*/
            let audioJQ = $("<audio src='" + audioSrc + "' autoplay id='hint'/>");
            audioJQ.appendTo("body");
        }


	function optionqd(){
		$("#option").attr('disabled',true);
		$.post("<?php echo U('Index/qdoption');?>",
			function(data){
				if(data.status == 1){
					layer.msg(data.msgs);  //,data.url);
					$("#option").attr('disabled',false);
					$("#option").text(data.msg);

					if(data.zr == 1){
                       //$("#option").attr('style','background:linear-gradient(45deg,#009688,#5fb878);');

                       $("#zt").text(1);

					} else {
						$("#zt").text(0);
                       // $("#option").attr('style','background:#ccc; color:#000');
					}
				}
			});
	}
	function start_sdd(id){
			
		window.location.href="/Index/qiangdanxq/id/"+id;
		}
	function start_sd(id,qdclass){
			
			$.post("<?php echo U('Index/sdq');?>",
				{'id' : id,qdclass:qdclass},
				function(data){
					if(data.status==1){
						layer.msg(data.msg);  //,data.url);
						setTimeout(function (args) {
							window.location.href = "<?php echo U('Index/shoudan');?>";
						}, 2000); 
					}else{
						layer.msg(data.msg);
					}
				});
		}
	</script>
	<script type="text/javascript">


	     $(document).ready(function() {
	     	 /*$.ajax({
                        type: 'POST',
                        url: '<?php echo U("Index/sds");?>',
                        data: '',
                        dataType: 'json',
                        success: function(str) {
                             $("#tpl").empty();
                             $.each(str, function(i, item){      
							
							   html='<tr style="line-height: 1.5em;"><td>'+item.t+'</td>';
							   html+= '<td >'+item.price+'</td>';
							   html+= '<td><button type="button" class="mui-btn mui-btn-danger zidong" id="autopipei" onclick="start_sd('+item.id+','+item.class+')" style="background: #3cad6d;width: 80%;border-radius: .1rem;color: #fff;border: 0;">抢单</button></td></tr>';

							   $("#tpl").append(html);
							 });  
                        }
                    });*/
                var r = window.setInterval(function() {
                    $.ajax({
                        type: 'POST',
                        url: '<?php echo U("Index/sds");?>',
                        data: '',
                        dataType: 'json',
                        success: function(str) {
                             $("#tpl").empty();
                             $.each(str, function(i, item){      
							
							   html='<tr style="line-height: 1.5em;"><td>'+item.t+'</td>';
							   html+= '<td >'+item.price+'</td>';
							   html+= '<td><button type="button" class="mui-btn mui-btn-danger zidong" id="autopipei" onclick="start_sd('+item.id+','+item.class+')" style="background: #3cad6d;width: 80%;border-radius: .1rem;color: #fff;border: 0;">抢单</button></td></tr>';

							   $("#tpl").append(html);
							 });  
                        }
                    });

                    if ($("#zt").text()== 1) {

                    	zdqd();
                    }

                    
                },
                5000);
				/*var y = window.setInterval(function() {
                    $.ajax({
                        type: 'POST',
                        url: '<?php echo U("Index/jygc");?>',
                        data: '',
                        dataType: 'json',
                        success: function(str) {
                             $("#item3mobile").empty();
                             $.each(str, function(i, item){      
							
							   html='<div data-v-7b3d257d class="detail-info"><div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0px, 0px); transition-duration: 0.6s;">';
							   html+= '<div data-v-9d393b54="" class="flexh flex-between MR10"><div data-v-9d393b54="" class="flex1"><div data-v-9d393b54="" class="benefit">类型<span data-v-9d393b54="" class="warn-color font-14">'+item.t+'</span><span data-v-9d393b54="" class="green font-14 ML10">'+item.ztai+'</span></div>';
							   html+= '<div data-v-9d393b54="" class="MT03">充值单号:'+item.pay_sn+'</div><div data-v-9d393b54="" class="MT03" style="color: rgb(153, 153, 153);">时间:'+item.add+'</div></div><div data-v-9d393b54="" style="text-align: right;"><div data-v-9d393b54="" class="benefit"><span data-v-9d393b54="" class="font-14 fail-color" style="font-size: .20rem;">'+item.pay_money+'元</span></div><div data-v-9d393b54="" class="green font-14" style="margin-top: 0.26rem;" onclick="location='+item.url+'">查看详情</div></div></div></div></div>';

							   $("#item3mobile").append(html);
							 });  
                        }
                    });

                  
                    
                },
                5000);*/
           });


	
</script>
 <span id="zt"><?php echo ($ulist["zdopention"]); ?></span>
  <div data-v-41371306="" class="van-hairline--top-bottom van-tabbar van-tabbar--fixed" style="z-index: 1;"><div data-v-41371306="" class="van-tabbar-item">
		<div class="van-tabbar-item__icon"><!----></div><a href="<?php echo U('Index/index');?>"><div class="van-tabbar-item__text">
		<img data-v-41371306="" src="/img/home.png" alt="" class="home-icons"></div></a></div><div data-v-41371306="" class="van-tabbar-item"><div class="van-tabbar-item__icon"><!----></div>
		<a href="<?php echo U('Recharge/chongzhi');?>"><div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/chongzhi1.png" alt="" class="home-icons"></div></a>
		</div><div data-v-41371306="" class="van-tabbar-item"><div class="van-tabbar-item__icon"><!----></div>
		<a href="<?php echo U('Withdraw/tixian');?>">
		<div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/tixian1.png" alt="" class="home-icons"></div></a></div><div data-v-41371306="" class="van-tabbar-item van-tabbar-item--active"><div class="van-tabbar-item__icon"><!----></div>
		<a href="<?php echo U('User/index');?>">
		<div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/center1.png" alt="" class="home-icons"></div></a></div></div>
  </div></div></body></html>